package com.dayuan.dao;

import org.apache.ibatis.annotations.Param;
import org.mybatis.spring.annotation.MapperScan;

import com.dayuan.bean.Order;
import com.dayuan.bean.OrderDetails;

@MapperScan
public interface OrderMapper {
	/* 生成订单主表 */
	public int insertOrder(Order order);
	
	 /*生成订单详表*/
	public int insertorderDetails(OrderDetails orderDetails);
	
	  /*修改订单状态*/  
	public int updateOrderState(@Param("state") int state,@Param("id") int id);
	
}
